package com.itec.learn.java.design.factory;

import com.itec.learn.java.design.factory.abstractFactory.Cheese;
import com.itec.learn.java.design.factory.abstractFactory.Clams;

/**
 * @author chenyiqun
 */
public abstract class Pizza {

    //种类：芝士披萨，蔬菜披萨
    protected String type;

    //风味：纽约风味披萨（饼薄），芝加哥风味披萨（饼厚）
    protected String style;

    public Cheese cheese;
    public Clams clams;

    public void prepare(){
        System.out.println("---------------------");
        System.out.println(String.format("披萨种类: %s , 披萨风味: %s",type,style));
        System.out.println("1. 准备披萨");
    }

    public void bake(){
        System.out.println("2. 烘烤披萨");
    }

    public void cut(){
        System.out.println("3. 披萨切片");
    }

    public void box(){
        System.out.println("4. 打包披萨");
        System.out.println("---------------------");
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }
}
